package com.xinminda.dcf.ui.news.model;

import com.xinminda.dcf.api.ApiManage;
import com.xinminda.dcf.base.baserx.RxHelper;
import com.xinminda.dcf.bean.NewsSummary;
import com.xinminda.dcf.ui.news.contract.NewsListContract;
import java.util.List;
import rx.Observable;

public class NewsListModel implements NewsListContract.Model{
    @Override
    public Observable<List<NewsSummary>> getNewsListData(String header, String params) {

        return ApiManage.getInstence().getApiService().getNewsList(header, params)
                .compose(RxHelper.<List<NewsSummary>>handleResult());

    }
}
